package com.jvm.classloader;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ConTest {

    @RequestMapping("/aaa")
    public void aaa(){
        Stu stu = new Stu();
        Stu stus = new Stu();

    }
    @RequestMapping("/bbb")
    public void bbb(){
        Stu stu = new Stu();
        Stu stus = new Stu();

    }

}

class Stu{
    static {
        System.out.println("我是静态代码块");
    }



    Stu(){

    }
    {
        System.out.println("我是代码块");
    }
}
